import * as vscode from 'vscode';
// 判断系统
export const isWin = process.platform === 'win32';
export const platformCmd = isWin ? 'cd' : 'pwd';
// 创建输出通道
export const outputChannel = vscode.window.createOutputChannel('wit-helper');

/**
 * 注册命令
 * @param name 命令名称，自动添加wit-helper前缀
 * @param cb
 */
export const registerBasic = (name: string, cb: (...args: any[]) => void): vscode.Disposable => {
	return vscode.commands.registerCommand(`wit-helper.${name}`, cb);
};
